package com.cskaoyan.controller.admin;

import com.cskaoyan.bean.vo.BasePageData;
import com.cskaoyan.bean.vo.BaseParam;
import com.cskaoyan.bean.vo.BaseRespVo;
import com.cskaoyan.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("admin/log")
public class LogController {

    /**
     * 对象存储
     */
    @Autowired
    LogService logService;


    @RequestMapping("list")
    public BaseRespVo list(String name, BaseParam param) {
        BasePageData data = logService.query(name, param);

        return BaseRespVo.ok(data);
    }

}
